home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 62 / 062.d81 / ps border viewer (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  4KB  |  141 lines

  1. 11 poke53280,2:poke53281,.:poke650,128
  2. 12 printchr$(142)"[147][153]    welcome to the print shop viewer"
  3. 20 poke56,120:clr:poke2,1:tp$=""
  4. 25 sys57812"text.o",8,0:poke780,0:poke781,71:poke782,198:sys65493
  5. 30 sys57812"unpacker",8,0:poke780,0:poke781,0:poke782,201:sys65493
  6. 35 sys57812"ps.combo2.o",8,0:poke780,0:poke781,0:poke782,128:sys65493
  7. 39 :
  8. 40 gosub1500
  9. 50 gosub1000
  10. 55 gosub2000
  11. 60 gosub2500
  12. 65 ri=cs+(cp-1)*28:tf=.:fl=.
  13. 70 ifa$="[133]"thengosub3000:sys51459:goto60
  14. 75 ifa$="[134]"thengosub5000:sys51459:goto60
  15. 80 ifa$="[135]"thencp=cp+1:ifcp>npthencp=1
  16. 81 ifa$="[135]"thengosub2040:ifnp>1thencs=1
  17. 82 ifa$="[135]"then60
  18. 85 ifa$="[136]"thengosub60000:gosub2100:goto60
  19. 90 sys57812im$(ri),8,0:poke780,0:poke781,0:poke782,88:sys65493:di=ri
  20. 100 gosub4000:goto60
  21. 999 :
  22. 1000 open3,8,3,"ps names":co=.:np=1
  23. 1005 input#3,ni
  24. 1010 dimim$(ni+1),me$(ni+1)
  25. 1020 fora=1toni
  26. 1030 input#3,im$(a):me$(a)=im$(a):co=co+1
  27. 1050 ni(np)=ni(np)+1:ifco>28thenco=.:np=np+1
  28. 1060 b=len(me$(a)):ifb<>16thenme$(a)=me$(a)+left$(sp$,16-b)
  29. 1070 next:close3:return
  30. 1080 :
  31. 1500 tp$="[213][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]"
  32. 1510 si$="[221]                                      [221]"
  33. 1520 di$="[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][179]"
  34. 1530 bo$="[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203]"
  35. 1540 bt$="[202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203][157][148][192]"
  36. 1550 sp$="                "
  37. 1560 cs=1
  38. 1570 jo=56320
  39. 1580 cp=1
  40. 1990 return
  41. 1999 :
  42. 2000 print"[147][153][146]"tp$si$si$di$;
  43. 2010 fora=1to14:printsi$;:next
  44. 2020 printdi$si$si$si$si$si$bt$;
  45. 2030 fora=217to242:pokea,peek(a)or128:next
  46. 2040 print"[146]          [158]print shop viewer"
  47. 2050 print"[150]by all the friendly folks at loadstar "
  48. 2060 print"";
  49. 2070 mi=int(ni(cp)/2)
  50. 2080 if(np>1)and(cp<>np)thenmi=14
  51. 2085 si=(cp-1)*28
  52. 2090 fora=si+1tosi+mi:printtab(1)"][154]"me$(a)"[  ][154]"me$(a+mi)"[":next
  53. 2093 ifsi+14=si+mithen2100
  54. 2096 fora=si+13tosi+mistep-1:print"                                      ":next
  55. 2100 print"[154]number of pages:"np;
  56. 2110 printtab(23)"[154]current page:"cp
  57. 2120 print"f1 [154]- auto mode"
  58. 2130 print"f3 [154]- quick look       [158]crsr keys move "
  59. 2140 print"f5 [154]- next page          [158]highlight"
  60. 2150 print"f7 [154]- quit           [158]return selects it."
  61. 2160 return
  62. 2500 b=cs:ifb>mithenb=b-mi
  63. 2510 print"";:fora=1tob:print:next
  64. 2520 printtab(2);:ifcs>mithenprinttab(19)"->";
  65. 2530 print""me$(si+cs);:poke198,.
  66. 2535 ifcs<mi+1thenprint"[146]<-";
  67. 2540 geta$:gosub2700:ifa$=""then2540
  68. 2545 if(a$=chr$(13))or(a$="[133]")or(a$="[134]")or(a$="[135]")or(a$="[136]")thenreturn
  69. 2550 b=cs:ifb>mithenb=b-mi
  70. 2560 print"";:fora=1tob:print:next
  71. 2570 printtab(2);:ifcs>mithenprinttab(19)"  ";
  72. 2580 print"[154]"me$(si+cs);
  73. 2585 ifcs<mi+1thenprint"  ";
  74. 2590 ifa$=""thencs=cs+1:ifcs>ni(cp)thencs=ni(cp)
  75. 2600 ifa$="[145]"thencs=cs-1:ifcs<1thencs=1
  76. 2610 ifa$=""thencs=cs+mi:ifcs>ni(cp)thencs=cs-mi*2
  77. 2620 ifa$="[157]"thencs=cs-mi:ifcs<1thencs=cs+mi*2
  78. 2640 goto2500
  79. 2700 if(peek(jo)and16)=.thena$=chr$(13):return
  80. 2710 a=(peek(jo)and15):ifa=15thenreturn
  81. 2720 ifa=14thena$="[145]"
  82. 2730 ifa=07thena$=""
  83. 2740 ifa=13thena$=""
  84. 2750 ifa=11thena$="[157]"
  85. 2760 return
  86. 3000 fordi=ritoni:tf=1
  87. 3010 sys57812im$(di),8,0:poke780,0:poke781,0:poke782,88:sys65493
  88. 3012 gosub4000
  89. 3020 poke249,224:poke250,204:sys50765:ifa$="q"ora$="[209]"thenreturn
  90. 3030 fl=1:next:ifri=1thenreturn
  91. 3040 fordi=1tori-1:tf=1
  92. 3050 sys57812im$(di),8,0:poke780,0:poke781,0:poke782,88:sys65493
  93. 3060 gosub4000
  94. 3070 poke249,224:poke250,204:sys50765:ifa$="q"ora$="[209]"thenreturn
  95. 3080 fl=1:next:return
  96. 4000 iffl=.thenpoke249,224:poke250,204:sys51459:sys50765
  97. 4007 n$=im$(di):poke53270,200:sys50759,n$,(240-len(n$)*8/2),72
  98. 4008 n$="crafted by":sys50759,n$,200,88
  99. 4009 n$="doug wilcox":sys50759,n$,(250-len(n$)*8/2),104
  100. 4012 goto4050
  101. 4050 poke53270,200
  102. 4052 poke33057,8:poke33058,212:sys32776
  103. 4055 poke33057,8:poke33058,1:sys32768
  104. 4060 sys50759,"press a key",202,120:iftf=1thensys50759,"[q to quit]",202,128
  105. 4062 poke198,.
  106. 4065 geta$:gosub2700:ifa$=""then4065
  107. 4070 iftf=.thensys51459
  108. 4080 return
  109. 5000 px=.:py=.:tf=1:poke249,224:poke250,204:sys51459:sys50765:poke53270,200
  110. 5010 gosub7000
  111. 5050 forx=1toni
  112. 5055 sys57812im$(x),8,0:poke780,0:poke781,0:poke782,88:sys65493
  113. 5060 poke53270,200:poke33057,py:poke33058,px:sys32776
  114. 5070 px=px+45:ifpx>224thenpx=.:py=py+46
  115. 5080 geta$:ifa$="q"ora$="[209]"thenreturn
  116. 5090 fl=.:ifx/20=int(x/20)thengosub6000:iffl=1thenreturn
  117. 5100 next:fl=1:syste,"[press a key]",118,188
  118. 5110 poke198,.:wait198,1:return
  119. 5120 :
  120. 6000 syste,"[press a key]",118,188
  121. 6010 poke198,.:wait198,1:geta$:poke198,.:ifa$="q"ora$="[209]"thenfl=1:return
  122. 6020 poke249,224:poke250,204:sys50765
  123. 6030 gosub7000:px=.:py=.:return
  124. 7000 te=50759:syste,"print shop",244,40:syste,"is a",268,48
  125. 7010 syste,"trademark",244,56
  126. 7020 syste,"of",276,64:syste,"broderbund",244,72
  127. 7030 syste,"software",252,80:syste,"q to quit",244,110
  128. 7040 return
  129. 10000 open15,8,15,"s0:ps border viewer":close15:save"ps border viewer",8:end
  130. 60000 print"[146]";
  131. 60010 fora=1to2:print"                                      ":next
  132. 60020 print"[154] are you sure you want to quit? (y[154]/n[154])":poke198,.
  133. 60030 fora=1to2:print"                                      ":next
  134. 60040 a=peek(203):ifa<>25anda<>39then60040
  135. 60050 ifa=39thenreturn
  136. 60060 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
  137. 60070 ifer<>63thenprint"";:poke198,.:end
  138. 60080 print"[147][144]load"chr$(34)"hello*"chr$(34)",8"
  139. 60090 print"run"
  140. 60095 poke631,13:poke632,13:poke198,2:end
  141.